<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
 <style>
    *{
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    .w1{
        height: 50px;
       
        
    }
   
   .w1 a{ 
     text-decoration: none;
     display: inline-block;
     height: 50px;
     width: 80PX;
     background-color:#ffc0cb;
     font-size: 16px; 
     
     text-align: center;
     padding-top: 10px;
     color: #FFF;
        
   }
   .w1 ul{
    background-color: #ffc0cb;
    width: 720PX;margin: auto;
   }
   .w1 a:hover {
      background-color: #008000;
     
    }

 </style>
<body>
    <div class="w1">
        <ul>
            
            <a href="">新闻1</a>
            <a href="">新闻2</a>
            <a href="">新闻3</a>
            <a href="">新闻4</a>
            <a href="">新闻5</a>
            <a href="">新闻6</a>
            <a href="">新闻7</a>
            <a href="">新闻8</a>
            
        
        </ul>
    </div>
    
</body>
</html>